package diaosidadui.test2;

public class Test01 {

    public static void main(String[] args) {
        method();
        method("JAVA");
        System.out.println(method(2));

    }

    //无参无返回
    public static void method(){
        System.out.println("啥也不干");
    }
    //有参无返回
    public static void method(String a){
        System.out.println(a+"还是啥也不干");
    }
    //有参有返回

    public static int method(int a){
        a++;
        return a;
    }
}
